package com.carbon.controller;

import com.carbon.model.Member;
import com.carbon.model.Result;
import com.carbon.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author yeshusheng
 * @version 1.0.0
 * @date 2021/6/16 15:34
 * @description  会员相关    示例代码，后期删除
 */
@RestController
@RequestMapping("/member")
public class MemberController {
    @Autowired
    MemberService memberService;

    // 登陆
    @RequestMapping(value = { "/login" },method = { RequestMethod.GET })
    public Result<Member> login(){
        return memberService.login();
    }
}
